package com.jeesite.modules.exam.score.entity;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;

import javax.validation.constraints.Size;

/**
 * 考核任务指标评分表-主表
 * @author xhc
 * @version 2022-06-01
 */
@Table(name="dc_sup_exam_score", alias="a", label="考核任务指标评分表-主表", columns={
		@Column(name="id", attrName="id", label="主键", isPK=true),
		@Column(name="exam_id", attrName="examId", label="考核任务id"),
		@Column(name="notice_id", attrName="noticeId", label="考核通知id"),
		@Column(name="score_type", attrName="scoreType", label="评分类型", comment="评分类型（1考核自评、2关键指标考核评分、3单项指标考核评分）"),
		@Column(name="score_source", attrName="scoreSource", label="评分来源", comment="评分来源（1汇总指标、2加减分项）"),
		@Column(name="quota_unit", attrName="quotaUnit", label="单位", comment="单位（数学或物理方面的单位）"),
		@Column(name="contact_name", attrName="contactName", label="联系人", comment="联系人"),
		@Column(name="contact_phone", attrName="contactPhone", label="联系电话", comment="联系电话"),
		@Column(name="exame_org", attrName="exameOrg", label="被考核单位编码", comment="被考核单位编码（单个）"),
		@Column(name="exame_org_name", attrName="exameOrgName", label="打分单位编码", comment="被考核单位名称（单个）"),
		@Column(name="score_org", attrName="scoreOrg", label="打分单位名称", comment="打分单位编码（单个）"),
		@Column(name="score_org_name", attrName="scoreOrgName", label="打分单位名称", comment="打分单位名称（单个）"),
		@Column(name="quota_weight", attrName="quotaWeight", label="权数"),
		@Column(name="quota_id", attrName="quotaId", label="指标id", comment="指标id（包含：sum_quota_id、quota_add_id）"),
		@Column(name="quota_score", attrName="quotaScore", label="指标分数", isUpdateForce=true),
		@Column(name="score_reason", attrName="scoreReason", label="打分原因"),
		@Column(name="create_by", attrName="createBy", label="创建人", isUpdate=false, isQuery=false),
		@Column(name="create_date", attrName="createDate", label="创建时间", isUpdate=false, isQuery=false, isUpdateForce=true),
		@Column(name="update_by", attrName="updateBy", label="更新人", isQuery=false),
		@Column(name="update_date", attrName="updateDate", label="更新时间", isQuery=false, isUpdateForce=true),
	}, orderBy="a.update_date DESC"
)
public class DcSupExamScore extends DataEntity<DcSupExamScore> {

	private static final long serialVersionUID = 1L;
	 /**
	 * 考核任务id
	 */
	private String examId;
	 /**
	 * 考核通知id
	 */
	private String noticeId;
	 /**
	 * 评分类型（1考核自评、2关键指标考核评分、3单项指标考核评分）
	 */
	private String scoreType;

	/**
	 * 联系人
	 */
	private String contactName;

	/**
	 * 联系电话
	 */
	private String contactPhone;

	/**
	 * 被考核单位编码（单个）
	 */
	private String exameOrg;

	/**
	 * 被考核单位名称（单个）
	 */
	private String exameOrgName;
	/**
	 * 打分单位编码（单个）
	 */
	private String scoreOrg;

	/**
	 * 打分单位名称（单个）
	 */
	private String scoreOrgName;

	/**
	 * 状态
	 */
	private String scoreStatus;

	private String quotaId;

	private String fileId;

	public String getFileId() {
		return fileId;
	}

	public void setFileId(String fileId) {
		this.fileId = fileId;
	}

	public String getQuotaId() {
		return quotaId;
	}

	public void setQuotaId(String quotaId) {
		this.quotaId = quotaId;
	}

	public String getScoreStatus() {
		return scoreStatus;
	}

	public void setScoreStatus(String scoreStatus) {
		this.scoreStatus = scoreStatus;
	}

	public String getContactName() {
		return contactName;
	}

	public void setContactName(String contactName) {
		this.contactName = contactName;
	}

	public String getContactPhone() {
		return contactPhone;
	}

	public void setContactPhone(String contactPhone) {
		this.contactPhone = contactPhone;
	}

	public String getExameOrg() {
		return exameOrg;
	}

	public void setExameOrg(String exameOrg) {
		this.exameOrg = exameOrg;
	}

	public String getExameOrgName() {
		return exameOrgName;
	}

	public void setExameOrgName(String exameOrgName) {
		this.exameOrgName = exameOrgName;
	}

	public String getScoreOrg() {
		return scoreOrg;
	}

	public void setScoreOrg(String scoreOrg) {
		this.scoreOrg = scoreOrg;
	}

	public String getScoreOrgName() {
		return scoreOrgName;
	}

	public void setScoreOrgName(String scoreOrgName) {
		this.scoreOrgName = scoreOrgName;
	}

	public DcSupExamScore() {
		this(null);
	}

	public DcSupExamScore(String id){
		super(id);
	}

	@Size(min=0, max=64, message="考核任务id长度不能超过 64 个字符")
	public String getExamId() {
		return examId;
	}

	public void setExamId(String examId) {
		this.examId = examId;
	}

	@Size(min=0, max=64, message="考核通知id长度不能超过 64 个字符")
	public String getNoticeId() {
		return noticeId;
	}

	public void setNoticeId(String noticeId) {
		this.noticeId = noticeId;
	}

	@Size(min=0, max=10, message="评分类型长度不能超过 10 个字符")
	public String getScoreType() {
		return scoreType;
	}

	public void setScoreType(String scoreType) {
		this.scoreType = scoreType;
	}


}